package com.woniuxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (Menu)实体类
 *
 * @author zjx
 * @since 2021-05-14 19:35:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("Menu菜单实体")
public class Menu implements Serializable {
    private static final long serialVersionUID = 750761841471047863L;
    @ApiModelProperty("菜单id")
    private Integer id;
    @ApiModelProperty("菜单名")
    private String name;
    @ApiModelProperty("菜单路径")
    private String url;
    @ApiModelProperty("父级菜单id")
    private Integer parentId;
    @ApiModelProperty("菜单图标")
    private String icon;
    @ApiModelProperty("创建者")
    private String creater;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("修改时间")
    private Date updateTime;
    @ApiModelProperty("子菜单集合")
    private List<Menu> children;


}
